<%--
  Created by IntelliJ IDEA.
  User: 18306
  Date: 2020/11/12
  Time: 15:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<% String path = request.getContextPath(); %>

<!DOCTYPE HTML>
<html xmlns:wb="http://open.weibo.com/wb">
<head>
    <script type="text/javascript" async="" src="/static/js/conversion.js"></script><script src="/static/js/allmobilize.min.js" charset="utf-8" id="allmobilize"></script><style type="text/css"></style>
    <meta content="no-siteapp" http-equiv="Cache-Control">
    <link  media="handheld" rel="alternate">
    <!-- end 云适配 -->
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
    <title>拉勾网-最专业的互联网招聘平台</title>
    <meta content="23635710066417756375" property="qc:admins">
    <meta name="description" content="拉勾网是3W旗下的互联网领域垂直招聘网站">
    <meta name="keywords" content="拉勾,拉勾网,拉勾招聘,拉钩, 拉钩网 ,互联网招聘,拉勾互联网招聘, 移动互联网招聘, 垂直互联网招聘, 微信招聘, 微博招聘, 拉勾官网, 拉勾百科,跳槽, 高薪职位, 互联网圈子, IT招聘, 职场招聘, 猎头招聘,O2O招聘, LBS招聘, 社交招聘, 校园招聘, 校招,社会招聘,社招">
    <meta content="QIQ6KC1oZ6" name="baidu-site-verification">

    <!-- <div class="web_root"  style="display:none">http://www.lagou.com</div> -->
    <script type="text/javascript">
        // var ctx = "http://www.lagou.com";
        // console.log(1);
    </script>
    <script type="text/javascript" src="/static/layui/layui.js"></script>
    <link href="/static/layui/css/layui.css" type="text/css" rel="stylesheet">
    <script src="/static/layui/layui.all.js"></script>

    <link href="http://www.lagou.com/images/favicon.ico" rel="Shortcut Icon">
    <link href="/static/css/style.css" type="text/css" rel="stylesheet">
    <link href="/static/css/external.min.css" type="text/css" rel="stylesheet">
    <link href="/static/css/popup.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" src="/static/js/jquery.1.10.1.min.js"></script>
    <script src="/static/js/jquery.lib.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="/static/js/ajaxfileupload.js"></script>
    <script src="/static/js/additional-methods.js" type="text/javascript"></script>
    <!--[if lte IE 8]>
    <script type="text/javascript" src="/static/js/excanvas.js"></script>
    <![endif]-->
    <script type="text/javascript">
        var youdao_conv_id = 271546;
    </script>
    <script src="/static/js/conv.js" type="text/javascript"></script>
    <script src="/static/js/ajaxCross.json" charset="UTF-8"></script>
</head>
<body>
<script type="text/javascript">
    //定义三个初始变量
    var idss = new Array(2);
    idss[0] = null;
    idss[1] = null;
    idss[2] = null;
    idss[3] = 37;
    $(function () {
        //加载页面的时候，默认显示的是第一页
        initData(idss[0],idss[1],idss[2],idss[3],1);
        //简历里筛选的显示框
        $("#filter_btn").click(function () {
            if($(this).attr("dispiay")=="none"){
                $(this).attr("display","block");
            }else{
                $(this).attr("display","none");
            }
        });

        //点击页码，点击哪一页显示哪一页的信息
        $("#insertpage").on("click",".page a",function () {
            var pageNum = $(this).attr("pager");
            initData(idss[0],idss[1],idss[2],idss[3],pageNum);
        })

        //给工作岗位添加点击事件，然后搜索
        $(".job").click(function () {
            $("a[class=job]").css("background","#f2f2f2");
            $("a[class=job]").css("color","gray");
            $(this).css("background","#019875");
            $(this).css("color","#fff");
            if($(this).attr("id")==undefined){
                idss[0] = null;
            }else{
                idss[0] = $(this).attr("id");
            }
            initData(idss[0],idss[1],idss[2],idss[3],1);

        })
        //给工作经历添加事件然后点击搜索
        $(".work").click(function () {
            $("a[class=work]").css("background","#f2f2f2");
            $("a[class=work]").css("color","gray");
            $(this).css("background","#019875");
            $(this).css("color","#fff");
            if($(this).attr("id")==undefined){
                idss[1] = null;
            }else{
                idss[1] = $(this).attr("id");
            }
            initData(idss[0],idss[1],idss[2],idss[3],1);
        })
        //给教育经历添加事件然后点击搜索
        $(".edu").click(function(){
            $("a[class=edu]").css("background","#f2f2f2");
            $("a[class=edu]").css("color","gray");
            $(this).css("background","#019875");
            $(this).css("color","#fff");
            if($(this).attr("id")==undefined){
                idss[2] = null;
            }else{
                idss[2] = $(this).attr("id");
            }
            initData(idss[0],idss[1],idss[2],idss[3],1);
        })
        //发送数据，然后去查询
        function initData(jobid,workid,eduid,num,pageNum) {
            var data = {jobId:jobid,workId:workid,eduId:eduid,num:num,pageNum:pageNum}
            $.post("/bossmanage/refuseinterviewinfo",data,function(mes){
                $("#insertpage").html(mes);
            })
        }
        //通知面试的窗口弹出
        $("#insertpage").on("click",".links .resume_notice",function(){
            $("#callinterview").css("display","block");
            $("#noticeInterview").css("display","block");
            // $("#callinterview").css("border","1px solid green");
            var jobId = $(this).parent().attr("jobId");
            var userId = $(this).parent().attr("userId");
            //点击发送 去通知面试人面试及修改数据库信息
            $("#interviewperson").click(function(){
                $.ajax({
                    url:"/bossmanage/updateresumestatus",
                    type:"post",
                    async:"false",
                    data:{jobId:jobId,userId:userId},
                    success:function (mes) {

                        $("#callinterview").css("display","none");
                        $("#noticeInterview").css("display","none");
                        window.location.href = "/bossmanage/manageresume";

                    }

                })
            })
            //点击取消，窗口消失
            $("#cancle").click(function () {
                $("#callinterview").css("display","none");
                $("#noticeInterview").css("display","none");
            })
        });
        //不合适的窗口弹出
        $("#insertpage").on("click",".links .resume_refuse",function () {
            $("#callinterview").css("display","block");
            $("#confirmRefuse").css("display","block");
            var jobId = $(this).parent().attr("jobId");
            var userId = $(this).parent().attr("userId");
            //发送不合适 去修改不合适的状态
            $("#improper").click(function () {
                $.ajax({
                    url:"/bossmanage/updateresumestatus1",
                    type:"post",
                    async: "false",
                    data:{jobId:jobId,userId:userId},
                    success:function () {
                        alert("0000");
                        $("#callinterview").css("display","none");
                        $("#confirmRefuse").css("display","none");
                        window.location.href = "/bossmanage/manageresume";
                    }
                })
            });
            //点击取消 窗口消失
            $("#cancle1").click(function () {
                $("#callinterview").css("display","none");
                $("#confirmRefuse").css("display","none");
            })
        })
        //点击单选框
        $(".checkbox").click(function () {

        })


    });


</script>





<div id="body">
    <jsp:include page="/bossmanage/inc/header"></jsp:include>
    <div id="container" style="border: 1px solid white">
        <div class="sidebar">
            <a class="btn_create" >管理简历</a>
            <dl class="company_center_aside">
                <dt>我收到的简历</dt>
                <dd >
                    <a href="/bossmanage/manageresume">待处理简历</a>

                </dd>
                <dd>
                    <a href="/bossmanage/interviewedresume">已通知面试简历</a>
                </dd>
                <dd>
                    <a href="/bossmanage/acceptinterview">已经接受面试的简历</a>
                </dd>
                <dd class="current btm">
                    <a href="/bossmanage/refuseinterview">未接受面试的简历</a>
                    <span>数目${requestScope.resumeCount}</span>
                </dd>
                <dd>
                    <a href="/bossmanage/improperresume">不合适简历</a>
                </dd>
            </dl>

        </div><!-- end .sidebar -->
        <div class="content">
            <dl class="company_center_content">
                <dt>
                    <h1>
                        <em></em>
                        未处理的简历  <span>（共${requestScope.resumeCount}份）</span>  </h1>
                </dt>
                <dd>

                    <div class="filter_actions ">
                        <label class="checkbox">
                            <input type="checkbox">
                            <i></i>
                        </label>
                        <span>全选</span>
                        <a id="resumeInterviewAll" href="javascript:;"></a>
                        <a id="resumeRefuseAll" href="javascript:;">不合适</a>
                        <div id="filter_btn">筛选简历 <em></em></div>
                    </div><!-- end .filter_actions -->
                    <div class="filter_options  dn ">
                        <dl>
                            <dt>职位：</dt>
                            <dd>
                                <a class="job" rel="-1" style="background:#019875;color:#fff">不限</a>
                                <c:forEach items="${requestScope.jobs}" var="job">
                                    <a class="job" id="${job.id}">${job.jobName}</a>
                                </c:forEach>

                                <input type="hidden" value="-1" name="workExp">
                            </dd>
                        </dl>
                        <dl>
                            <dt>工作经验：</dt>
                            <dd>
                                <a class="work" rel="-1" style="background:#019875;color:#fff">不限</a>
                                <c:forEach items="${requestScope.work}" var="work">
                                    <a class="work" id="${work.id}" rel="1" >${work.name}</a>
                                </c:forEach>

                                <input type="hidden" value="-1" name="workExp">
                            </dd>
                        </dl>
                        <dl>
                            <dt>最低学历：</dt>
                            <dd>
                                <a class="edu" rel="-1" style="background:#019875;color:#fff">不限</a>
                                <c:forEach items="${requestScope.edu}" var="edu" varStatus="status">
                                    <c:if test="${status.count != 1}">
                                        <a  class="edu" id="${edu.id}" rel="1" >${edu.name}以上</a>
                                    </c:if>
                                </c:forEach>
                                <input type="hidden" value="-1" name="eduExp">
                            </dd>
                        </dl>
                        <input type="hidden" value="0" name="filterStatus" id="filterStatus">
                        <input type="hidden" value="" name="positionId" id="positionId">
                    </div><!-- end .filter_options -->
                    <span   id="insertpage">


                         </span>


                    <!-- end .resumeLists -->

                </dd>
            </dl>
        </div><!-- end .content -->

        <!------------------------------------- 弹窗lightbox ----------------------------------------->
        <div id="callinterview" style="display:none;margin-top: 500px">
            <!--通知面试弹窗-->
            <div  style="display:none;overflow:auto;position: absolute; margin-top: -400px;background-color:lightblue;margin-left: 240px;height: 500px;width: 600px"
                  class="popup" id="noticeInterview">
                <form id="noticeInterviewForm">
                    <table width="100%" class="f16">
                        <tbody><tr>
                            <td width="20%" align="right" class="c9">收件人  </td>
                            <td width="80%">
                                <span class="c9" id="receiveEmail"></span>
                                <input type="text" value="" name="email">
                            </td>
                        </tr>
                        <tr>
                            <td align="right"><span class="redstar">*</span>主题</td>
                            <td>
                                <input type="text" placeholder="公司：职位名称面试通知" name="subject">
                            </td>
                        </tr>
                        <tr>
                            <td align="right"><span class="redstar">*</span>面试时间</td>
                            <td>
                                <input type="text" id="datetimepicker" name="interTime" class="hasDatepicker">
                            </td>
                        </tr>
                        <tr>
                            <td align="right"><span class="redstar">*</span>面试地点</td>
                            <td>
                                <input type="text" name="interAdd">
                            </td>
                        </tr>
                        <tr>
                            <td align="right">联系人</td>
                            <td>
                                <input type="text" name="linkMan">
                            </td>
                        </tr>
                        <tr>
                            <td align="right"><span class="redstar">*</span>联系电话</td>
                            <td>
                                <input type="text" name="linkPhone">
                            </td>
                        </tr>
                        <tr>
                            <td valign="top" align="right">补充内容</td>
                            <td>
                                <textarea name="content"></textarea>
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>
                                <a id="interviewperson"  class="btn" >发送</a>
                                <a  id="cancle" class="btn">取消</a>
                            </td>
                        </tr>
                        </tbody></table>
                    <input type="hidden" value="" name="name">
                    <input type="hidden" value="" name="positionName">
                    <input type="hidden" value="" name="companyName">
                    <input type="hidden" value="" name="deliverId">
                </form>
            </div><!--/#noticeInterview-->

            <%--            <!--预览通知面试弹窗-->--%>
            <%--            <div class="popup" id="noticeInterviewPreview">--%>
            <%--                <div class="f18">拉勾网：产品经理面试通知 </div>--%>
            <%--                <div class="c9">发给：<span>vivi@lagou.com</span></div>--%>
            <%--                <div id="emailText"></div>--%>
            <%--                <input type="button" value="提交" class="btn fl">--%>
            <%--                <a title="通知面试" class="inline fl cboxElement" href="#noticeInterview">返回修改</a>--%>
            <%--            </div><!--/#noticeInterviewPreview-->--%>

            <!--通知面试成功弹窗-->
            <div class="popup" id="noticeInterviewSuccess" style="display:none;">
                <table width="100%" class="f16">
                    <tbody><tr>
                        <td align="center" class="f16">
                            面试通知已发送成功<br>
                            该简历已进入“已通知面试简历”列表
                        </td>
                    </tr>
                    <tr>
                        <td align="center">
                            <input type="button" value="确认" class="btn">
                        </td>
                    </tr>
                    </tbody></table>
            </div><!--/#noticeInterviewSuccess-->



            <!--确认不合适弹窗-->
            <div style="height:400px;display:none;background-color:lightblue;margin-left: 300px;position: absolute;margin-top: -400px" class="popup" id="confirmRefuse">
                <form id="refuseMailForm">
                    <table width="100%">
                        <tbody><tr>
                            <td>
                                <div class="refuse_icon">
                                    <h3>确认这份简历不合适吗？</h3>
                                    <span>确认后，系统将自动发送以下内容至用户邮箱</span>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>
	             		<textarea name="content">非常荣幸收到您的简历，在我们仔细阅读您的简历之后，却不得不很遗憾的通知您：
您的简历与该职位的定位有些不匹配，因此无法进入面试。

但您的信息已录入我司人才储备库，当有合适您的职位开放时我们将第一时间联系您，希望在未来我们有机会成为一起拼搏的同事；
再次感谢您对我们的信任，祝您早日找到满意的工作。</textarea>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <%--                                <input type="submit" value="确认不合适" class="btn">--%>
                                <a class="btn" id="improper">确认不合适</a>
                                <a class="btn" id="cancle1">取消</a>
                            </td>
                        </tr>
                        </tbody></table>
                    <input type="hidden" value="" name="deliverId">
                </form>
            </div><!--/#confirmRefuse-->

            <!--拒绝email成功弹窗-->
            <div class="popup" id="refuseMailSuccess" style="display:none;">
                <table width="100%" class="f16">
                    <tbody><tr>
                        <td align="center" class="f16">
                            不合适通知已发送成功<br>
                            该简历已进入“不合适简历”列表
                        </td>
                    </tr>
                    <tr>
                        <td align="center">
                            <input type="button" value="确认" class="btn">
                        </td>
                    </tr>
                    </tbody></table>
            </div><!--/#refuseMailSuccess-->
        </div>
        <!------------------------------------- end ----------------------------------------->
        <script src="/static/js/jquery.ui.datetimepicker.min.js" type="text/javascript"></script>
        <script src="/static/js/received_resumes.min.js" type="text/javascript"></script>
        <script>
        </script>
        <div class="clear"></div>
        <input type="hidden" value="8e0aac9393b44b1f925b6be8130285be" id="resubmitToken">
        <a rel="nofollow" title="回到顶部" id="backtop"></a>
    </div><!-- end #container -->
</div><!-- end #body -->
<jsp:include page="/bossmanage/inc/footer"></jsp:include>

<script src="/static/js/core.min.js" type="text/javascript"></script>
<script src="/static/js/popup.min.js" type="text/javascript"></script>

<!--  -->

<script type="text/javascript">
    $(function(){
        $('#noticeDot-1').hide();
        $('#noticeTip a.closeNT').click(function(){
            $(this).parent().hide();
        });
    });
    var index = Math.floor(Math.random() * 2);
    var ipArray = new Array('42.62.79.226','42.62.79.227');
    var url = "ws://" + ipArray[index] + ":18080/wsServlet?code=314873";
    var CallCenter = {
        init:function(url){
            var _websocket = new WebSocket(url);
            _websocket.onopen = function(evt) {
                console.log("Connected to WebSocket server.");
            };
            _websocket.onclose = function(evt) {
                console.log("Disconnected");
            };
            _websocket.onmessage = function(evt) {
                //alert(evt.data);
                var notice = jQuery.parseJSON(evt.data);
                if(notice.status[0] == 0){
                    $('#noticeDot-0').hide();
                    $('#noticeTip').hide();
                    $('#noticeNo').text('').show().parent('a').attr('href',ctx+'/mycenter/delivery.html');
                    $('#noticeNoPage').text('').show().parent('a').attr('href',ctx+'/mycenter/delivery.html');
                }else{
                    $('#noticeDot-0').show();
                    $('#noticeTip strong').text(notice.status[0]);
                    $('#noticeTip').show();
                    $('#noticeNo').text('('+notice.status[0]+')').show().parent('a').attr('href',ctx+'/mycenter/delivery.html');
                    $('#noticeNoPage').text(' ('+notice.status[0]+')').show().parent('a').attr('href',ctx+'/mycenter/delivery.html');
                }
                $('#noticeDot-1').hide();
            };
            _websocket.onerror = function(evt) {
                console.log('Error occured: ' + evt);
            };
        }
    };
    CallCenter.init(url);
</script>

<div id="cboxOverlay" style="display: none;"></div><div id="colorbox" class="" role="dialog" tabindex="-1" style="display: none;"><div id="cboxWrapper"><div><div id="cboxTopLeft" style="float: left;"></div><div id="cboxTopCenter" style="float: left;"></div><div id="cboxTopRight" style="float: left;"></div></div><div style="clear: left;"><div id="cboxMiddleLeft" style="float: left;"></div><div id="cboxContent" style="float: left;"><div id="cboxTitle" style="float: left;"></div><div id="cboxCurrent" style="float: left;"></div><button type="button" id="cboxPrevious"></button><button type="button" id="cboxNext"></button><button id="cboxSlideshow"></button><div id="cboxLoadingOverlay" style="float: left;"></div><div id="cboxLoadingGraphic" style="float: left;"></div></div><div id="cboxMiddleRight" style="float: left;"></div></div><div style="clear: left;"><div id="cboxBottomLeft" style="float: left;"></div><div id="cboxBottomCenter" style="float: left;"></div><div id="cboxBottomRight" style="float: left;"></div></div></div><div style="position: absolute; width: 9999px; visibility: hidden; display: none;"></div></div><div class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all" id="ui-datepicker-div"></div></body></html>



